package ru.nagakhl.whirlpool.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotation indicating that target object should be mapped to specified ColumnFamily in
 * specified Keyspace. 
 * 
 * Think of this as @Entity annotation in JPA
 * 
 * @author nagakhl
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface ColumnFamily {
	
	/** Name of ColumnFaimily to map this class to */
	String name();
	
	/** Name of Keyspace where ColumnFaimily this class is mapped to is located */
	String keyspace();
	
}
